package com.bean;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author WxrStart
 * @create 2022-06-14 14:27
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Goods {
    @TableId(type= IdType.AUTO)
    @Alias("商品编号")
    private Integer goodsId;

    @Alias("商品名字")
    private String goodsName;

    @Alias("商品价格")
    private Integer goodsPrice;

    @Alias("商品库存数")
    private Integer goodsStock;

    @Alias("商品描述")
    private String goodsDisc;

    @Alias("商品图片地址")
    private String goodsPic;

    @Alias("是否参与秒杀（0不参与1参与）")
    private Integer isSeckill;

    @TableField(fill = FieldFill.INSERT)
    @Alias("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Alias("最近更新时间")
    private Date updateTime;

}
